package demo3;

/**
 * 2023/7/12 19:40
 **/
public class Manager extends Employee {
    private String department;
    public Manager(){};
    public Manager(String name, String address, double baseSalary, String department) {
        super(name, address, baseSalary);
        this.department = department;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("Department: " + department);
    }
}
